﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ChessGame
{
    /// <summary>
    /// Controller object
    /// </summary>
    public partial class Controller : Form
    {
        /// <summary>
        /// Controller Constructor
        /// </summary>
        public Controller()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Click Event for PvPButton
        /// </summary>
        /// <param name="sender">Sender</param>
        /// <param name="e">EventArgs</param>
        private void PvPButton_Click(object sender, EventArgs e)
        {
            Chess chesspvp = new Chess(2);
            chesspvp.Show();
            this.Hide();
        }

        /// <summary>
        /// Click Event for PvCButton
        /// </summary>
        /// <param name="sender">Sender</param>
        /// <param name="e">EventArgs</param>
        private void PvCButton_Click(object sender, EventArgs e)
        {
            Chess chesspvc = new Chess(1);
            chesspvc.Show();
            this.Hide();
        }
    }
}
